<?php

namespace app\home\validate;

use think\Validate;
 
class Indexv extends Validate
{
    protected $rule =   [
        'name'  => 'require|max:25',
        'password'   => 'require',   
    ];
    
    protected $message  =   [
        'name.require' => '名称必须',
        'name.max'     => '名称最多不能超过25个字符',
        'password.require'   => '密码必须',

    ];
}